package com.lzy.webapi.response;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * APP订单列表返回对象
 * Created by WIN7 on 2017/12/15.
 */
public class OrderCouponsListAppResponse implements Serializable {
    private static final long serialVersionUID = -1692598078495606667L;
    /**
     * 订单号
     */
    private Long orderId;

    /**
     * 状态（1-待支付，2-购买成功（审核中），3-已关闭，4-返现中，5-已到期）
     */
    private Integer status;

    /**
     * 合同
     */
    private String contractUrl;

    /**
     * 合同审核状态
     */
    private Integer contractVerify;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 总价
     */
    private BigDecimal moneyCount;

    /**
     * 温馨提示
     */
    private String reminder;

    private String statusName;//订单状态名称

    /**
     * 合同审核状态（0-审核中，1-审核通过，2-审核不通过）
     */
    private String contractVerifyName;

    private List<OrderCouponsProjectResponse> projects;

    private OrderYieldRatioResponse orderYieldRatio;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        if (status != null) {
            if (status.equals(1))
                this.statusName = "待支付";
            if (status.equals(2))
                this.statusName = "审核中";
            if (status.equals(3))
                this.statusName = "已关闭";
            if (status.equals(4))
                this.statusName = "补贴中";
            if (status.equals(5))
                this.statusName = "已完结";
        }
        this.status = status;
    }

    public Integer getContractVerify() {
        return contractVerify;
    }

    public void setContractVerify(Integer contractVerify) {
        if (contractVerify != null) {
            if (contractVerify.equals(0))
                this.contractVerifyName = "审核中";
            if (contractVerify.equals(1))
                this.contractVerifyName = "已签订";
            if (contractVerify.equals(2))
                this.contractVerifyName = "审核不通过";
        }
        this.contractVerify = contractVerify;
    }

    public String getReminder() {
        return reminder;
    }

    public void setReminder(String reminder) {
        this.reminder = reminder;
    }

    public String getStatusName() {
        return statusName;
    }

    public String getContractVerifyName() {
        return contractVerifyName;
    }

    public List<OrderCouponsProjectResponse> getProjects() {
        return projects;
    }

    public void setProjects(List<OrderCouponsProjectResponse> projects) {
        this.projects = projects;
    }

    public OrderYieldRatioResponse getOrderYieldRatio() {
        return orderYieldRatio;
    }

    public void setOrderYieldRatio(OrderYieldRatioResponse orderYieldRatio) {
        this.orderYieldRatio = orderYieldRatio;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getMoneyCount() {
        return moneyCount;
    }

    public void setMoneyCount(BigDecimal moneyCount) {
        this.moneyCount = moneyCount;
    }

    public String getContractUrl() {
        return contractUrl;
    }

    public void setContractUrl(String contractUrl) {
        this.contractUrl = contractUrl;
    }
}
